package com.hzhc.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hzhc.entity.TaskPlan;
import com.hzhc.vo.TaskPlanVo;

import java.util.List;

/**
 * <p>
 * 任务管理 服务类
 * </p>
 *
 * @author 功不唐捐
 * @since 2024-04-07
 */
public interface TaskPlanService extends IService<TaskPlan>  {
    List<TaskPlanVo> getTaskPlanVoList(Page<TaskPlanVo> page, TaskPlanVo vo);

    Boolean checkTaskPlanByField(String field, String fieldStr, Long id);

    Boolean addTaskPlan(TaskPlan taskPlan);

    Boolean updateTaskPlan(TaskPlan taskPlan);

    Boolean delTaskPlan(Integer id);

    Boolean updateTaskPlanStatus(TaskPlan taskPlan);

    Boolean checkCronExpressionIsValid(String cronExpression);
}
